#pragma once

#include <vector>
#include <string>

using namespace std;

class GameMenu
{
private:
	int selectedElementIndex;

public:
	vector<string> MenuItems;

	GameMenu(void)
	{
		selectedElementIndex = 0;
	}

	virtual ~GameMenu(void)
	{
	}

	int GetSelectedElementIndex()
	{
		return selectedElementIndex;
	}

	void SelectNextElement()
	{
		selectedElementIndex++;

		if(MenuItems.size()<=selectedElementIndex)
			selectedElementIndex = 0;
	}

	void SelectPrevElement()
	{
		selectedElementIndex--;

		if(selectedElementIndex<0)
			selectedElementIndex = MenuItems.size() - 1;
	}
};
